package com.modern.js.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.modern.js.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import com.modern.js.pojo.AssistPojo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author PIGS
 * @since 2020-03-23
 */
public interface IRoleService extends IService<Role> {

    List<AssistPojo> roleById(Integer roleId);

    IPage<AssistPojo> selectAll(Page<AssistPojo> page,String deptName,String roleName);

    List<AssistPojo> selectRoleDept(Integer deptId);

    boolean insertRole(Role role,Integer deptId);

    int updateRole(Role role,Integer deptId,Integer id);

    boolean delRole(AssistPojo assistPojo);
}
